import random
randomNum = random.randint(0,10)
inputNum = input("请输入一个0到10之间的整数：")
judge = True
while (judge):
    if (randomNum != int(inputNum)):
        if (randomNum < int(inputNum)):
            inputNum = input("大啦，请在输入一个0到10之间的整数：")
        if (randomNum > int(inputNum)):
            inputNum = input("小啦，请在输入一个0到10之间的整数：")
    else:
        print("恭喜你，才对啦！")
        judge = False